using System;
using System.Security.Cryptography;
using System.Text;

namespace SklepISI.Core.Helpers
{
    public static class StringEncrypt
    {
        public static string Generate(string password)
        {
            return String.IsNullOrEmpty(password)
                       ? String.Empty
                       : BitConverter.ToString((new SHA256CryptoServiceProvider()).ComputeHash(Encoding.UTF8.GetBytes(password)));

        }
    }
}